import {request} from "./index";

export function adminlogin(userId,passWord) {
    return request({
        method:'post',
        url:'/login',
        params:{
            userId:userId,
            passWord:passWord
        }
    })
}

export function getproduction(userId,current,size,end) {
    return request({
        method:'GET',
        url:'/super/get_productions',
        params:{
            uId:userId,
            current:current,
            size:size,
            isEnd:end
        }
    })
}

export function setgrade(pid,grade) {
    return request({
        method:'POST',
        url:'/super/set_grade',
        params:{
            id:pid,
            grade:grade
        }
    })
}
